import App from './App'
uni.$Toast = function(title) {
	uni.showToast({
		title,
		icon: 'none'
	})
}
import dayjs from 'dayjs'

export function time (time) {
	return dayjs(time).format('YYYY-MM-DD')
}
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import * as Pinia from 'pinia'
export function createApp() {
	const app = createSSRApp(App)
	const pinia = Pinia.createPinia()
	app.use(pinia)
	return {
		app,
		pinia
	}
}
// #endif
